package fr.charlott.batch;

import org.springframework.batch.core.JobExecution;
import org.springframework.batch.core.JobExecutionListener;

public class JobListener implements JobExecutionListener {

	private JobExecution jobExecution;
	
    /**
     * @see org.springframework.batch.core.JobExecutionListener#beforeJob(org.
     *      springframework.batch.core.JobExecution)
     */
    @Override
    public void beforeJob(JobExecution jobExecution) {
    }

    /**
     * @see org.springframework.batch.core.JobExecutionListener#afterJob(org.
     *      springframework.batch.core.JobExecution)
     */
    @Override
    public void afterJob(JobExecution jobExecution) {
    	this.jobExecution = jobExecution;
    }

	public JobExecution getJobExecution() {
		return jobExecution;
	}

}
